package variabilitysmelldetection.measurement.measures.spl;

import java.util.List;

import variabilitysmelldetection.measurement.measures.Measure;
import variabilitysmelldetection.measurement.models.ComponentItem;



public class NumberOfRefinements extends Measure {

	public NumberOfRefinements() {
		super("Number of Refinements", "NOR");
	}

	public void measure(List<ComponentItem> items) {
		int nor = 0;
		for (ComponentItem c : items) {
			if (c.isRefinement()) {
				nor++;
			}
		}
		setValue(nor);
	}
}